<div>  
  <table class="list">
    <tr class="listheader">
      <td>First Name</td>
      <td>Last Name</td>
      <td>Role</td>
      <td></td>
    </tr>    
    <% 
    row_class="alternaterows"
    for user in @users
      if row_class=="rows"
        row_class="alternaterows" 
      else
        row_class="rows"
      end
    %>
      <tr class="<%= row_class %>">
        <td width="15%"><%= user.first_name %></td>
        <td><%= user.last_name %></td>
        <td><%= user.role.name %></td>
        <td align="right">
          <%= link_to '[x]', { 
            :controller => :login,
            :action => :destroy,
            :id => user },
            {
            :method => :post,
            :confirm => "Really delete #{user.name}?"
          }%>
        </td>
      </tr>
    <% end %>
  </table>
</div>
<br />
<%= link_to "Add user" , :controller => 'login', :action => 'add_user' %>